import { myRequest } from './api.js'

// 律师列表
const getLawyerList = async function(params) {
	return await myRequest({url: '/client/lawyer/list', data: params})
}

// 团队列表
const getTeamList = async function(params) {
	return await myRequest({url: '/client/team/list', data: params})
}

// 标签列表
const getTagList = async function(params) {
	return await myRequest({url: '/client/tag/list', data: params})
}

// 团队详情
const getTeamFind = async function(params) {
	return await myRequest({url: '/client/team/find', data: params})
}

// 收藏/取消收藏
const teamFavorite = async function(params) {
	return await myRequest({url: '/client/team/favorite', data: params, method: 'POST'})
}

// 我收藏的团队
const favoriteList = async function(params) {
	return await myRequest({url: '/client/team/favoriteList', data: params})
}

// 律师详情（app）
const findLawyer = async function(params) {
	return await myRequest({url: '/client/lawyer/find', data: params})
}

// 根据团队获取评价
const getAppraisal = async function(params) {
	return await myRequest({url: '/client/team/getAppraisal', data: params})
}

export {
	getLawyerList,
	getTeamList,
	getTagList,
	getTeamFind,
	teamFavorite,
	favoriteList,
	findLawyer,
	getAppraisal
}